package com.luoran.bartalks.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luoran.bartalks.dao.IBtProjectMemberDao;
import com.luoran.bartalks.entity.biz.BtProject;
import com.luoran.bartalks.entity.biz.BtProjectMember;
import com.luoran.bartalks.service.IBtProjectMemberService;

@Service
public class BtProjectMemberService implements IBtProjectMemberService {

	@Autowired
	private IBtProjectMemberDao memberDao;

	// 通过项目ID查询对应的成员
	@Override
	public List<BtProjectMember> getProjectMember(String id) {

		return memberDao.getProjectMember(id);
	}

	// 根据成员Id查询项目
	@Override
	public List<BtProjectMember> getProjectMembersByMemberId(String memberId, String companyId) {

		return memberDao.getProjectMembersByMemberId(memberId, companyId);
	}

	// 根据用户ID公司ID去重查找项目
	@Override
	public 	List<BtProject> getProjectOfAPP(String memberId, String companyId) {
		return memberDao.getProjectOfAPP(memberId, companyId);
	}

}
